Skip to content

fix(confluent-kafka): use PUBLISH operation for producer spans#4435

Closed
alliasgher wants to merge 2 commits intoopen-telemetry:mainfrom
alliasgher:fix-confluent-kafka-produce-operation
Closed

fix(confluent-kafka): use PUBLISH operation for producer spans#4435
alliasgher wants to merge 2 commits intoopen-telemetry:mainfrom
alliasgher:fix-confluent-kafka-produce-operation

Conversation

@alliasgher
Copy link
Copy Markdown
Contributor

@alliasgher alliasgher commented Apr 14, 2026

Description

Producer spans in the Confluent Kafka instrumentation used CREATE as the messaging operation name. The semantic conventions define PUBLISH for message send operations. Use PUBLISH so the span's messaging.operation.name attribute follows the spec.

Fixes #4418

Type of change

  • Bug fix (non-breaking change which fixes an issue)

Checklist

  • Changelog entry added under Unreleased / Fixed

wrap_produce was setting messaging.operation=RECEIVE on producer spans.
The correct OTel semantic value for a send/produce operation is PUBLISH.

Fixes open-telemetry#4292

Signed-off-by: alliasgher <alliasgher123@gmail.com>
@alliasgher alliasgher force-pushed the fix-confluent-kafka-produce-operation branch from 11e1867 to 527ae8a Compare April 15, 2026 20:17
Signed-off-by: Ali <alliasgher123@gmail.com>
@alliasgher alliasgher requested a review from a team as a code owner April 15, 2026 20:21
@MikeGoldsmith
Copy link
Copy Markdown
Member

This will conflict with #4423 where I suggested the same fix as part of other work. I see you did it there, so going to close this PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants